<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:x="http://www.w3.org/1999/xhtml">

	<xsl:template match="@*|node()">
		<xsl:apply-templates select="@*|node()" />
	</xsl:template>

	<xsl:template match="/">
		<!-- <br/> -->
		<html>
			<body>
				<xsl:value-of
					select="count(.//x:div[@class='cw' and starts-with(@id, 'comment_')])"></xsl:value-of>
				<xsl:for-each
					select=".//x:div[@class='cw' and starts-with(@id, 'comment_')]">
					<xsl:if test="position() &lt; 20">
						<h4>
							<xsl:value-of select=".//x:div[@class='title']//x:a[@shape='rect']"></xsl:value-of>
						</h4>
						<p>by <xsl:value-of select=".//x:div[@class='details']//x:a[@shape='rect']/child::text()"></xsl:value-of>
						</p>
						<p><xsl:value-of select=".//x:div[starts-with(@id, 'comment_body_')]"></xsl:value-of>
						</p>
					</xsl:if>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>

</xsl:stylesheet>
